//
//  BeautyCell.m
//  ALFashion
//
//  Created by dllo on 15/6/19.
//  Copyright (c) 2015年 dengzhicheng. All rights reserved.
//

#import "BeautyCell.h"
#define WIDTH [UIScreen mainScreen].bounds.size.width
@implementation BeautyCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createCell];
    }
    return self;
}

- (void)createCell
{
    self.showImage = [[UIImageView alloc]initWithFrame:CGRectMake(0.026 * WIDTH, 0.024 * WIDTH, 0.3 * WIDTH, 0.3 * WIDTH)];
    self.showImage.backgroundColor = [UIColor orangeColor];
    [self.contentView addSubview:self.showImage];
    
//    self.title = [[UILabel alloc]initWithFrame:CGRectMake(0.352 *WIDTH, 0.024 * WIDTH, WIDTH - 0.402 * WIDTH - 0.026 * WIDTH, 0.16 * WIDTH)];
    self.title = [[UILabel alloc]init];
    self.title.numberOfLines = 0;
    //self.title.backgroundColor = [UIColor grayColor];
    self.title.font = [UIFont boldSystemFontOfSize:19];
    self.title.textColor = [UIColor colorWithRed:0.2 green:0.2 blue:0.2 alpha:1];
    [self.contentView addSubview:self.title];
    
    self.subTitle = [[UILabel alloc]init];
    self.subTitle.numberOfLines = 0;
   // self.subTitle.backgroundColor = [UIColor grayColor];
    self.subTitle.textColor = [UIColor grayColor];
    self.subTitle.font = [UIFont systemFontOfSize:16];
    [self.contentView addSubview:self.subTitle];
    
//    UIImageView *image = [[UIImageView alloc]initWithFrame:CGRectMake(0.93 * WIDTH, 0.16 * WIDTH, 0.07 * WIDTH, 0.05 * WIDTH)];
//    [image setImage:[UIImage imageNamed:@"right.png"]];
//    [self.contentView addSubview:image];
    
    
    
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
